package com.ck.demo.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;

@Configuration
public class LocaleResolvercConfig {
    @Bean//容器中有LocaleResolver这个Bean了，就不会使用springboot自动装配的LocaleResolver（）方法了
    public LocaleResolver localeResolver() {
        System.out.println("si你好啊");
        return new LangLocaleResolver();
    }
}
